<!DOCTYPE html>
<html lang="en">
	<head>
	    <title>系统参数</title>
	    <meta charset="UTF-8" />
	    <meta name="Author" content="" />
	    <meta name="Keywords" content="" />
	    <meta name="Description" content="" />
	    
	    <!-- 基础CSS库 -->
	    <link rel="stylesheet" href="../../../../js/bootstrap/themes/default/bootstrap.css" />
	    <link rel="stylesheet" href="../../../../js/jquery-easyui-1.5/themes/bootstrap/validatebox.css" />
	    <link rel="stylesheet" href="../../../../js/jquery-easyui-1.5/themes/bootstrap/tooltip.css" />
	    <link rel="stylesheet" href="../../../../css/jquery.select2.css" />
	    <link rel="stylesheet" href="../../../../css/jquery.select2-bootstrap.css" />
	    
	    <!-- 基础CSS库 -->
	    <link rel="stylesheet" href="../../../../css/common/base.css" />
	    <link rel="stylesheet" href="../../../../css/common/scrollbar.css" />
	    
	    <!-- 基础JS库 -->
	    <script src="../../../../js/common/package.js"></script>
		<script src="../../../../js/common/url.js"></script>
		<script src="../../../../js/common/json2.js"></script>	
		<script src="../../../../js/common/jquery-1.11.3.min.js"></script>		
		<script src="../../../../js/bootstrap/bootstrap.js"></script>
		<script src="../../../../js/bootstrap/plugins/bootstrap-paginator.js"></script>
		<script src="../../../../js/jquery-easyui-1.5/jquery.easyui.min.js"></script>
		<script src="../../../../js/ztree/js/jquery.ztree.all.min.js"></script>
		<script src="../../../../js/common/jquery.select2.js"></script>
		
		<!-- 业务JS库 -->
		<script src="../../../../js/common/base.js"></script>
		<script src="../../../../js/common/datagrid.js"></script>
		<script src="../../../../js/common/tree.js"></script>
		<script src="../../../../js/common/formatter.js"></script>	    
	    <script src="../../../../js/each/etep/sys/param/sysparam.js"></script>
		
		<!-- 页面样式 -->
		<style type="text/css">
			.container-fluid {
				padding-top: 4px;
			}
			.modal-form {
				margin: 15px 0;
			}
		</style>
	    
	</head>
	<body>
	
		<div class="container-fluid">
			<div class="row">				
				<div class="col-md-12">
					<div class="panel panel-info">
						<div class="panel-heading">
							<h4 class="panel-title">查询信息</h4>
					  	</div>
					  	<div class="panel-body">	
					  		<form id="searchForm" class="form-inline">
							  	<div class="form-group">
							    	<label class="form-label">名称 </label>
							  	</div>
							  	<div class="form-group">
							    	<input name="itemName" type="text" class="form-control input-sm" placeholder="请输入名称" />
							  	</div>				  	
							  	<button id="btn-search" type="button" class="btn btn-default btn-sm">查询</button>
								<button id="btn-reset" type="button" class="btn btn-default btn-sm">重置</button>   							
							</form>		  												 	
					  	</div>
					</div>
					<div class="panel panel-info">
						<div class="panel-heading">
							<h4 class="panel-title">参数信息</h4>
					  	</div>
					  	<div class="panel-body">
					    	<form id="listForm">					    		
					    		<button id="btn-insert" type="button" class="btn btn-primary btn-sm">添加系统参数</button>
					    		<button id="btn-update" type="button" class="btn btn-warning btn-sm">修改系统参数</button>
					    		<button id="btn-remove" type="button" class="btn btn-danger btn-sm">删除系统参数</button>
					    	</form>
					  	</div>
						<table class="table table-striped table-bordered table-hover datagrid">
						    <thead>
						    	<tr>						    		
							    	<th field="ck"></th>	
							    	<th field="rn">序号</th>						    	
							    	<th field="id" idField="true" hidden="true">ID</th>
							    	<th field="itemKey">参数代码</th>
							    	<th field="itemName">参数名称</th>
							    	<th field="itemValue">参数值</th>							    	
							    	<th field="readonly" formatter="Formatter.readonlyHtml(val)">是否只读</th>
							    	<th field="isEnable" formatter="Formatter.isEnableHtml(val)">是否启用</th>
							    	<th field="remark">备注</th>
						    	</tr>
						    </thead>
						    <tbody></tbody>
						</table>
					  	<div class="panel-footer">
							<div id="paginator"></div>
						</div>
					</div>
				</div>
			</div>		 	
		</div>
		

		<div id="update-win" class="modal fade" role="dialog" aria-labelledby="update-win-label" aria-describedby="……">
			<div class="modal-dialog" role="document">
		    	<div class="modal-content">
		      		<div class="modal-header">
		        		<h5 class="modal-title" id="update-win-label"></h5>
		      		</div>
	      			<div class="modal-form">
	      				<form id="updateForm" class="form-horizontal">
							<input name="id" type="text" class="hidden" />	
							<input id="type" name="type" type="text" class="hidden" value="1" />
							<div class="form-group">
				    			<label class="col-sm-3 control-label">参数代码</label>
				    			<div class="col-sm-8">
				      				<input name="itemKey" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入参数代码" data-options="required:true, validType:['code','maxLength[20]']" />
				    			</div>
				  			</div>		
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">参数名称</label>
				    			<div class="col-sm-8">
				      				<input name="itemName" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入参数名称" required="required" validType="maxLength[20]" />
				    			</div>
				  			</div>	
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">参数值</label>
				    			<div class="col-sm-8">
				      				<input name="itemValue" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入参数值" required="required" validType="maxLength[20]" />
				    			</div>
				  			</div>				  			
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">是否只读</label>
				    			<div class="col-sm-8">
				    				<select id="readonly" name="readonly">
									  <option value="1" selected>是</option>
									  <option value="2">否</option>
									</select>
				    			</div>
				  			</div>	
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">是否启用</label>
				    			<div class="col-sm-8">
				    				<div>
				    					<select id="isEnable" name="isEnable">
										  <option value="1" selected>是</option>
										  <option value="2">否</option>
										</select>
				    				</div>				    				
				    			</div>
				  			</div>	
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">备注</label>
				    			<div class="col-sm-8">
				      				<textarea name="remark" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入备注" validType="maxLength[50]"></textarea>
				    			</div>
				  			</div>				 			
						</form>
	      			</div>		      		
		      		<div class="modal-footer">
				        <button id="btn-save" type="button" class="btn btn-success btn-sm">保存</button>
				        <button id="btn-close" type="button" class="btn btn-default btn-sm">关闭</button>		        
		      		</div>
		    	</div>
		  	</div>
		</div>
		
			
	</body>
</html>